<%@page import="java.sql.*"%>
<%@page contentType="text/html;charset=GB2312"%>
<%@include file="opendata.jsp"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%
 String name = request.getParameter("name");
 String password = request.getParameter("password");
 sql = "select * from admins where admname = '"+name+"' and admpwd = '"+password+"'";
 rs = smt.executeQuery(sql);
 if(rs.next())
 {
   request.getSession(true);
   String chk="true";
   session.putValue("Enter",chk);
   response.sendRedirect("mainform.jsp");
 }
 else
 {
  String errmsg="error1";
  response.sendRedirect("login.jsp?errmsg="+errmsg);
 }

%>
<html>
<body>

</body>
</html>